﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace binary.Helpers
{
    public static class ParametersHelper
    {
        /// <summary>
        /// Get value of Config parameter (-c)
        /// </summary>
        /// <param name="parameters"></param>
        /// <returns></returns>
        public static string GetConfigFile(string[] parameters)
        {
            for(int i=0; i<parameters.Length; i++)
            {
                if (parameters[i].Equals("-c") && i+1 <= parameters.Length)
                {
                    return parameters[i+1];
                }
            }
            return string.Empty;
        }
    }
}
